/*public class test {
    public static void main(String[] args) {
    cale c = new cale(1.2,0);
        System.out.println(c.add());
        System.out.println(c.del());
        System.out.println(c.mul());
        System.out.println(c.div());
    }
}
class cale{
    double d1;
    double d2;

    public cale(double d1,double d2){
        this.d1 = d1;
        this.d2 = d2;
    }
    public double add(){
    return d1 +d2;
    }
    public double del(){
        return d1 - d2;
    }public double mul(){
        return d1 * d2;
    }public Double div(){
        if(d2 == 0){
            System.out.println("分母不能为0!");
            return null;
        }
        return d1 / d2;
    }

}*/

/*public class test {
    public static void main(String[] args) {
    test01 t = new test01();
    new test01().a01();//结束即销毁
    t.a02();
    }
}

class test01{
    int count = 9;
    public void a01(){
        count = 10;
    }
    public void a02(){
        System.out.println(count);
    }
}*/

/*public class test {
    public static void main(String[] args) {
    Music music = new Music("笑场",289);
    music.play();
        System.out.println(music.getInfo());
    }
}
class Music{
    String name;
    int times;
    public Music(String name,int times){
    this.name = name;
    this.times = times;
    }

    public void play(){
        System.out.println("音乐:" + name + "正在播放中.... 时长为" + times + "s");
    }
    public String getInfo(){
    return "音乐:" + name + "时长为" + times + "s";
    }
}*/


/*
public class test {
    public static void main(String[] args) {
    Circle circle = new Circle();
    passObject passObject = new passObject();
    passObject.printareas(circle,5);
       //System.out.println("圆的面积为:" + circle.findareas());
    }
}

class Circle{
    double ridius;
//    public Circle(double riduis){
//        this.ridius = riduis;
//    }
    public double findareas(){
    return Math.PI * ridius * ridius;
    }
}

class passObject{
    public void printareas(Circle c,int times){
        System.out.println("Radius      Area");
        for(int i = 1;i<times +1;i++){
            c.ridius = i;
            System.out.println(c.ridius + "         " + c.findareas());
        }
    }

}*/


/*public class test {
    public static void main(String[] args) {
        int m = 0;
        int n = 0;
        compete compete = new compete();
        for(int i = 0;i<3;i++){
            Scanner input = new Scanner(System.in);
            System.out.print("请输入(0:石头 1:剪刀 2:布):");
            int j = input.nextInt();
            if(j >2 || j<0){
                System.out.println("输入错误!");
                break;
            }
            //compete.guess(j);
            Random random = new Random();
            int puter = random.nextInt(3);
            if(j == 0 && puter == 1){
                m++;
                System.out.println("你赢下一句,当前比分" + m + ":" + n);
            }
            else if(j == 1 && puter == 2){
                m++;
                System.out.println("你赢下一句,当前比分" + m + ":" + n);
            }
            else if(j == 2 && puter == 0){
                m++;
                System.out.println("你赢下一句,当前比分" + m + ":" + n);
            }
            else if(j == puter){
                System.out.println("平局,当前比分" + m + ":" + n);
            }
            else {
                n++;
                System.out.println("你输掉一句,当前比分" + m + ":" + n);
            }

        }
    }
}

class compete{
    public void guess(int j){
        int m = 0;
        int n = 0;
        Random random = new Random();
        int puter = random.nextInt(3);


    }
}*/
